package com.unei.guava.demo.fp;

import com.google.common.base.Function;
import com.google.common.base.Joiner;

/**
 * Created by sunlei on 2015/1/21.
 */
public class StateToCityString implements Function<State,String> {
    @Override
    public String apply(State input) {
        return Joiner.on(",").join(input.getMainCities());
    }
}
